import request from '@/utils/request'

// 创建危险作业票分析数据
export function createLicenceAnalyzeData(data) {
  return request({
    url: '/biz/licence-analyze-data/create',
    method: 'post',
    data: data
  })
}

// 更新危险作业票分析数据
export function updateLicenceAnalyzeData(data) {
  return request({
    url: '/biz/licence-analyze-data/update',
    method: 'put',
    data: data
  })
}

// 删除危险作业票分析数据
export function deleteLicenceAnalyzeData(id) {
  return request({
    url: '/biz/licence-analyze-data/delete?id=' + id,
    method: 'delete'
  })
}

// 获得危险作业票分析数据
export function getLicenceAnalyzeData(id) {
  return request({
    url: '/biz/licence-analyze-data/get?id=' + id,
    method: 'get'
  })
}

// 获得危险作业票分析数据分页
export function getLicenceAnalyzeDataPage(query) {
  return request({
    url: '/biz/licence-analyze-data/page',
    method: 'get',
    params: query
  })
}

// 导出危险作业票分析数据 Excel
export function exportLicenceAnalyzeDataExcel(query) {
  return request({
    url: '/biz/licence-analyze-data/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
